package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;

import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.*;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyServerRouteDTO;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
import org.wu.framework.core.mapper.LazyStructMapper;
import org.wu.framework.core.mapper.LazyStructMappers;

/**
 * describe 服务端路由
 *
 * @author Jia wei Wu
 * @date 2025/04/05 09:00 晚上
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
 **/
@LazyStructMapper
public interface LazyNettyServerRouteDTOAssembler {


    /**
     * describe MapStruct 创建的代理对象
     *
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRouteDTOAssembler INSTANCE = LazyStructMappers.getMapper(LazyNettyServerRouteDTOAssembler.class);

    /**
     * describe 应用层存储入参转换成 领域对象
     *
     * @param lazyNettyServerRouteStoryCommand 保存服务端路由对象
     * @return {@link LazyNettyServerRoute} 服务端路由领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteStoryCommand lazyNettyServerRouteStoryCommand);

    /**
     * describe 应用层更新入参转换成 领域对象
     *
     * @param lazyNettyServerRouteUpdateCommand 更新服务端路由对象
     * @return {@link LazyNettyServerRoute} 服务端路由领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteUpdateCommand lazyNettyServerRouteUpdateCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyServerRouteQueryOneCommand 查询单个服务端路由对象参数
     * @return {@link LazyNettyServerRoute} 服务端路由领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteQueryOneCommand lazyNettyServerRouteQueryOneCommand);

    /**
     * describe 应用层查询入参转换成 领域对象
     *
     * @param lazyNettyServerRouteQueryListCommand 查询集合服务端路由对象参数
     * @return {@link LazyNettyServerRoute} 服务端路由领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteQueryListCommand lazyNettyServerRouteQueryListCommand);

    /**
     * describe 应用层删除入参转换成 领域对象
     *
     * @param lazyNettyServerRouteRemoveCommand 删除服务端路由对象参数
     * @return {@link LazyNettyServerRoute} 服务端路由领域对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteRemoveCommand lazyNettyServerRouteRemoveCommand);

    /**
     * describe 持久层领域对象转换成DTO对象
     *
     * @param lazyNettyServerRoute 服务端路由领域对象
     * @return {@link LazyNettyServerRouteDTO} 服务端路由DTO对象
     * @author Jia wei Wu
     * @date 2025/04/05 09:00 晚上
     **/
    LazyNettyServerRouteDTO fromLazyNettyServerRoute(LazyNettyServerRoute lazyNettyServerRoute);
}